/**
 * @Author Mrlu
 * @Version 1.0
 * @Date 2023-08-02 16:29:22
 */
package com.cl.erp_2301.Service.impl;

import com.cl.erp_2301.dto.*;
import com.cl.erp_2301.mapper.OrdersMapper;
import com.cl.erp_2301.Service.OrdersService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrdersServiceImpl implements OrdersService {

    @Resource
    private OrdersMapper ordersMapper;

    @Override
    public List<OrdersDTO> listByPage(Integer state) {
        return ordersMapper.listByPage(state);
    }

    @Override
    public List<OrdersDetailDTO> selectOrderDetailByUuId(Integer uuid) {
        return ordersMapper.selectOrderDetailByUuId(uuid);
    }


    @Override
    public List<OrdersDetailDTO> listByPage1() {
        return ordersMapper.listByPage1();
    }

    @Override
    public List<OrdersDTO> showsupplier(int type) {
        return ordersMapper.showsupplier(type);
    }

    @Override
    public List<OrdersDTO> selectStore() {
        return ordersMapper.selectStore();
    }

    @Override
    public void orderAdd(List<MarketDTO> marketDetails) {
            ordersMapper.orderAdd(marketDetails);
    }

    @Override
    public Integer selectStoreUuid(Integer storeuuid) {
        return ordersMapper.selectStoreUuid(storeuuid);
    }



    @Override
    public void doOut(OrdersDetailDTO ordersDetailDTO) {
         ordersMapper.doOut(ordersDetailDTO);
    }

    @Override
    public List<OrdersDTO> patterns() {
        return ordersMapper.patterns();
    }

    @Override
    public List<OrdersDTO> charkmap() {
        return ordersMapper.charkmap();
    }


}
